﻿ 
namespace GSOrganization.Application
{

    /// <summary>
    /// 菜单结果对象
    /// </summary>
    public class MenusInfoResultDTO
    {
        /// <summary>
        /// 权限菜单树
        /// </summary>
        public List<SystemMenu> menuInfo { get; set; }

        /// <summary>
        /// logo
        /// </summary>
        public LogoInfo logoInfo { get; set; }

        /// <summary>
        /// Home
        /// </summary>
        public HomeInfo homeInfo { get; set; }
    }

    public class LogoInfo
    {
        public string title { get; set; } = "高质量低代码";
        public string image { get; set; } = "/images/logo.png";
        public string href { get; set; } = "";
    }

    public class HomeInfo
    {
        public string title { get; set; } = "首页";
        public string href { get; set; } = "/Home/Welcome";

    }
    /// <summary>
    /// 树结构对象
    /// </summary>
    public class SystemTree
    {
        /// <summary>
        /// 数据ID
        /// </summary>
        public string id { get; set; }


        /// <summary>
        /// 节点名称
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 是否选中
        /// </summary>
        public bool? @checked { get; set; }
        /// <summary>
        /// 是否展开
        /// </summary>
        public bool spread { get; set; }
        /// <summary>
        /// 菜单图标样式
        /// </summary>
        public string icon { get; set; }


        /// <summary>
        /// 子集
        /// </summary>
        public List<SystemTree> children { get; set; }
    }

    /// <summary>
    /// 树结构对象
    /// </summary>
    public class SystemMenu
    {
        /// <summary>
        /// 数据ID
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        public string parentId { get; set; }

        /// <summary>
        /// 节点名称
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// 节点地址
        /// </summary>
        public string href { get; set; }

        /// <summary>
        /// 新开Tab方式
        /// </summary>
        public string target { get; set; } = "_self";

        /// <summary>
        /// 菜单图标样式
        /// </summary>
        public string icon { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int sort { get; set; }

        /// <summary>
        /// 子集
        /// </summary>
        public List<SystemMenu> child { get; set; }
    }
}


